package com.luoran.system.utils;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.luoran.system.api.domain.SysRole;
import com.luoran.system.service.ISysRoleService;

public class CellDataDemoHeadDataListenerProcess implements ReadListener<SysRole> {

    private ISysRoleService roleService;

    public CellDataDemoHeadDataListenerProcess(ISysRoleService roleService) {
        this.roleService = roleService;
    }


    @Override
    public void invoke(SysRole sysRole, AnalysisContext analysisContext) {
        roleService.insertRoleImport(sysRole);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("解析之后的方法");
    }
}
